package com.zyg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("student")
@Data
@AllArgsConstructor
@NoArgsConstructor

public class Student {
    @TableId(value = "student_id",type = IdType.AUTO)
    private Integer studentId;
    private String studentName;
    @TableField(exist = false)
    private Cla cla;
    private Integer claId;
    @TableField(exist = false)
    private Hostel hostel;
    private Integer hostelId;
    @TableField(exist = false)
    private Major major;
    private Integer majorId;
    private int gender;

}
